#ifndef __HEAD_H__
#define __HEAD_H__

#include <func.h>

typedef struct train_s
{
    int length;
    char data[1000];
} train_t;

typedef struct train_state_s{
    int state;
    int length;
    char buff[100];
}train_state_t;

int transfile(int netfd,const char* filename);
int recvn(int netfd, void *buf, int length);
int recvfile(int netfd);
int epollAdd(int epfd, int fd);
int epollDel(int epfd, int fd);
int whichOrder(char* orderList,int* orderflag,char* args);


#endif
